package com.gl.service.impl;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import com.gl.service.IndexService;

@Service("IndexServiceImpl")
@Scope("prototype")
public class IndexServiceImpl implements IndexService{
	private int data = 0;
	
	@Override
	public int test() throws Exception {
		//Thread.sleep(6000);
		System.out.println("IndexServiceImpl data:" + this.data);
		this.data++;
		return this.data;
	}

}
